
#pragma once

#include "sprite.h"
#include "WeVector2.h"

namespace WackiEngine
{

	class Laser
	{
	public:
		Laser();

		void set(const Vector2f& pos, const Vector2f& dir, float vel);

		void update();
		void render();
		bool isExpired() { return _lifetime > 5.0f; }

	protected:
		float		_maxVel;

		float		_lifetime;

		Vector2f	_acc;
		Vector2f	_vel;
		Vector2f	_pos;
		Vector2f	_dir;

		Sprite		_laser;
	};

}